home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 4
/
MacMania 4.toast
/
/
Demo's
/
Igor Demo Pro
/
1 PutContentsIn Igor Pro Folder
/
WaveMetrics Procedures
/
Image and Contour Plots
/
Contour Levels
< prev
next >
Wrap
Text File
|
1996-01-29
|
815b
|
19 lines
#include <Keyword-Value> // For StrByKey
| Have you ever wanted to adjust a contour level that Igor
| computed automatically? Ya can't do it!
| You can, however, run this macro which moves all the current
| automatic, manual, or from-wave levels into the More Levels
| Dialog where you CAN adjust a contour level by retyping it.
Macro MoveAllLevelsIntoMoreLevels(contourName)
String contourName
Prompt contourName,"Contour plot:",popup,ContourNameList("",";") // plots in top graph
String levels= StrByKey("LEVELS", ContourInfo("",contourName,0)) // levels as string list
String cmd="ModifyContour "+contourName+" "
cmd+= "autoLevels = {*,*,0}, moreLevels=0,moreLevels={"+levels+"}"
Print "All contour levels for "+contourName+" converted to a list of levels in the “More Levels” dialog."
Execute cmd
End